package com.atguigu.tingshu.order.client;

import com.atguigu.tingshu.model.order.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(value = "service-order", path = "/client/order/orderInfo", contextId ="orderInfoFeignClient" )
public interface OrderInfoFeignClient {

  /**
   * 查询订单的详细信息
   * @return
   */
  @GetMapping(value = "/getOrderInfo/{orderNo}")
  public OrderInfo getOrderInfo(@PathVariable(value = "orderNo") String orderNo);

}